﻿using System;

namespace MessagePack.Decoders
{
	// Token: 0x020000BB RID: 187
	internal class InvalidUInt32 : IUInt32Decoder
	{
		// Token: 0x060002DC RID: 732 RVA: 0x0000BB63 File Offset: 0x00009F63
		private InvalidUInt32()
		{
		}

		// Token: 0x060002DD RID: 733 RVA: 0x0000BB6B File Offset: 0x00009F6B
		public uint Read(byte[] bytes, int offset, out int readSize)
		{
			throw new InvalidOperationException(string.Format("code is invalid. code:{0} format:{1}", bytes[offset], MessagePackCode.ToFormatName(bytes[offset])));
		}

		// Token: 0x040000DA RID: 218
		internal static readonly IUInt32Decoder Instance = new InvalidUInt32();
	}
}
